/*
 * @Author: wcx
 * @Email: 1055127249@qq.com
 * @Date: 2025-01-22 15:47:36
 * @LastEditors: wcx 1055127249@qq.com
 * @LastEditTime: 2025-01-22 16:16:59
 * @FilePath: \hello-prisma\add.ts
 * @Description: 描述
 */
import { createUsers } from './mock/generate.js'
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()

async function main() {
    const array = createUsers(10)
    for (let i = 0; i < array.length; i++) {
        console.log(array[i])
        await prisma.user.create({ data: array[i] })
    }
    // const [data] = createUsers(1)
    // await prisma.user.create({ data })
}

main()